<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="meta.jsp"%>
<script src="${contextPath}/js/Ajax.js"></script>
<script src="${contextPath}/plugins/jQuery/jQuery-2.2.0.min.js"></script>
<script src="${contextPath}/plugins/ajaxfileupload/ajaxfileupload.js"></script>
<script src="${contextPath}/plugins/ajaxfileupload/ajaxupload.js"></script>
<script src="${contextPath}/js/main.js"></script>
<title>无锡科技</title>
</head>

<script type="text/javascript">
	var success = function(data) {
		$('#viewName').attr('value', data.attachName);
		$('#viewPath').attr('value', data.attachPath);
		$('#viewTime').attr('value', data.uploadTime);
	};

	$(function() {
		ajaxFileUploadNoClick('fiLeName', success);
		ajaxFileUploadNoClick('fiLeName2', success);
		ajaxFileUploadNoClick('fiLeName3', success);
	})
</script>
<body class="sidebar-mini wysihtml5-supported skin-blue-light">
	<div class="form-group">
		<label for="file">下载附件</label> <input type="button"
			onclick="downloadFile('test.txt','20160607/b6e24a1e-5adc-4091-9e01-7e85fbf1edf0.txt')"
			value="xiazai" />
	</div>


	<h1>上传</h1>
	<input id="fileToUpload" type="file" size="45" name="file"
		class="input">
	<button class="button" onclick="ajaxFileUpload('fileToUpload',success)">上传</button>

	<h1>选择文件后立即上传,无需点击上传按钮</h1>
	选择文件： 文件1：
	<input id="fiLeName"> 文件2：
	<input id="fiLeName2"> 文件3：
	<input id="fiLeName3" type="file">
	<br>
	<br> 上传成功信息：
	<input id="viewName" type="text">
	<input id="viewPath" type="text">
	<input id="viewTime" type="text">
</body>
</html>
